package exception;

import java.io.IOException;
import java.text.ParseException;

/**
 * @Author Justin Parker
 * @Date 2024/7/18 0018 10:52
 * @Version 1.0
 */
/*
    重写中异常的抛出规则
 */
public class ThrowDemo02 {


}



class Shape{
    public void draw() throws IOException {
        System.out.println("Shape.draw()");
    }
}
class Circle extends Shape{
    public void draw() throws IOException,IndexOutOfBoundsException{
        System.out.println("Circle.draw()");
    }
}